import * as AgentApi from '@/api/call/agent'
import { usePhoneStore } from '@/store/modules/phone'
import { formatDate } from '@/utils/formatTime'
import { collapseEmits } from 'element-plus'
import { ElMessage } from 'element-plus'

/**
 * 双向回拨 外呼 sdk
 * 1. 调用call API 外呼
 */

export function useRecallPhone() {
  const useStore = usePhoneStore()

  const reg = async () => {
    useStore.setAgentStatus('login')
    ElMessage.success('双向回拨模式已激活')
  }
  const call = async (params) => {
    // 先去请求call接口 > 暴漏给useCall中默认实现
    // await AgentApi.simpleCall(params)
  }
  return {
    reg,
    call
  }
}
